# -*- coding: utf-8 -*-
import os


class Configuration(object):
    APPLICATION_DIR = os.path.dirname(os.path.realpath(__file__))
    DEBUG = True
    SECRET_KEY = "stuff"
    IS_PRODUCT = False
    if 'PRODUCT' in os.environ:
        IS_PRODUCT = True
    if IS_PRODUCT:
        SQLALCHEMY_DATABASE_URI = 'sqlite:///%s/babby.db' % '/data'
    else:
        SQLALCHEMY_DATABASE_URI = 'sqlite:///%s/babby.db' % APPLICATION_DIR
    # SQLALCHEMY_DATABASE_URI = 'sqlite:///%s/model/babby.db' % APPLICATION_DIR
    SQLALCHEMY_TRACK_MODIFICATIONS = True

